using System;
using System.Collections.Generic;
using System.Text;

namespace Fieldbook.Entities
{
	public class Message
	{
		private long? messageid;
		private long? senderid;
		private long? receiverid;
		private string caption;
		private string content;
        private MessageType messagetypeid;
        private MessageStatus messagestatusid;
		private bool? messagereadstatus;
		public long? Messageid
		{
			get { return messageid; }
			set { this.messageid = value; }
		}
		public long? Senderid
		{
			get { return senderid; }
			set { this.senderid = value; }
		}
		public long? Receiverid
		{
			get { return receiverid; }
			set { this.receiverid = value; }
		}
		public string Caption
		{
			get { return caption; }
			set { this.caption = value; }
		}
		public string Content
		{
			get { return content; }
			set { this.content = value; }
		}
        public MessageType Messagetypeid
		{
			get { return messagetypeid; }
			set { this.messagetypeid = value; }
		}
        public MessageStatus Messagestatusid
		{
			get { return messagestatusid; }
			set { this.messagestatusid = value; }
		}
		public bool? Messagereadstatus
		{
			get { return messagereadstatus; }
			set { this.messagereadstatus = value; }
		}

        public enum MessageType : byte
        {
            SimpleMessage,
            SMS,
            Forum,
            Mail
        }

        public enum MessageStatus : byte
        {
            Pending,
            Delivered,
            Failed
        }
	}
}
